<%-- 
    Document   : ContentService
    Created on : Oct 11, 2010, 5:48:18 PM
    Author     : M Bilal
--%>


<%@page import="wap.rockvilletech.portal.DBProc"%>
<%@ page import="java.io.*,java.sql.*,java.net.*"%>
<%@ page import="org.apache.log4j.Logger" %>

<% final Logger log = Logger.getLogger("JSP.ContentService");%>

<%@ include file="includes/header.jspf"%>
<%
    thisPage="ServicesContent";
    String srvId=request.getParameter("srvid")!=null?request.getParameter("srvid").toString():"";
    String[] arrServce = DBProc.getInstance().getServiceContent(srvId);
    String strSrvTitle="",strImgURL="",strSrvDetail="";
    boolean isHref=false;
    int channelIcon=(int)(wurfl_screenWidth/4)-25;
    int logoIcon=Math.min(100, channelIcon*2); 
    //title, imgurl, href, details, title_ur, details_ur //column names
%>

<div align="center" style="padding: 0px 0px 0px 0px;">
     <div class="div_navigation">
         
         
         <%
         	String servid =  request.getParameter("srvid");
         	if(servid.equalsIgnoreCase("4") || servid.equalsIgnoreCase("37") || servid.equalsIgnoreCase("38"))
         	{
         		%>
         		<a href="<%=context_Path%>" class="LinkIndex">Home</a> >
         		<a href="<%=context_Path%>/religion/index.jsp" class="LinkIndex">Religion</a> ><span class="navigation_Leaf"> Services</span>
         		<%         		
         	}
         	else
         	{
         		%>
         		<a href="<%=context_Path%>" class="LinkIndex">Home</a> ><span class="navigation_Leaf"> Services</span>
         		<%
         	}
         %>
</div>
<%
try{
if(arrServce!=null){
         strSrvTitle = arrServce[0] != null ? arrServce[0] : "";
         app=strSrvTitle;
         strImgURL = arrServce[1] != null ? arrServce[1] : "";
         strSrvDetail =  arrServce[3] != null ? arrServce[3] : "";
         isHref = arrServce[2] != null ? true : false;
    if(isHref){
        response.sendRedirect(arrServce[2].toString().trim());
    }
%>
<div>
         <table width="100%" align="left" cellpadding="0" cellspacing="0" style="text-align: left;font-weight: bold;">
                <tr>
                    <td style="background-image:url('images/new/top_bar_02.jpg');background-repeat: repeat-x;height:26px;">
                        <b style="padding:0px 0px 0px 4px;"><%=strSrvTitle%></b>
                    </td>
                 </tr>
            </table>
</div>
    
<div style="padding:4px 0px 4px 0px;clear: both;">
        <img src="<%=context_Path%>/imgsrv?img=<%=strImgURL%>&repo=PI&s=0&w=<%=catIcon%>" style="padding:0px 4px 4px 4px;" align="left" alt="">
        <div style="padding:0px 5px 0px 5px; margin: 0px 0px 0px 0px; text-align:justify;">
            <%=strSrvDetail%>
            <%
                if("81".equals(srvId)){
            %>
            <div>
                <img src="<%=context_Path%>/imgsrv?img=services/tvchannels/aajnewsOff.jpg&repo=PI&s=0&w=<%=channelIcon%>" style="padding-top:2px;" align="left" alt="">
		<img src="<%=context_Path%>/imgsrv?img=services/tvchannels/atvOff.jpg&repo=PI&s=0&w=<%=channelIcon%>" style="padding-top:2px;" align="left" alt="">
		<img src="<%=context_Path%>/imgsrv?img=services/tvchannels/atvplusOff.jpg&repo=PI&s=0&w=<%=channelIcon%>" style="padding-top:2px;" align="left" alt="">
		<img src="<%=context_Path%>/imgsrv?img=services/tvchannels/express247Off.jpg&repo=PI&s=0&w=<%=channelIcon%>" style="padding-top:2px;" align="left" alt=""><br/>
		</div>
		<div style="clear:both;">
		<img src="<%=context_Path%>/imgsrv?img=services/tvchannels/gkaboomOff.jpg&repo=PI&s=0&w=<%=channelIcon%>" style="padding-top:2px;" align="left" alt="">
		<img src="<%=context_Path%>/imgsrv?img=services/tvchannels/humtvOff.jpg&repo=PI&s=0&w=<%=channelIcon%>" style="padding-top:2px;" align="left" alt="">
		<img src="<%=context_Path%>/imgsrv?img=services/tvchannels/mtvOff.jpg&repo=PI&s=0&w=<%=channelIcon%>" style="padding-top:2px;" align="left" alt="">
		<img src="<%=context_Path%>/imgsrv?img=services/tvchannels/newsoneOff.jpg&repo=PI&s=0&w=<%=channelIcon%>" style="padding-top:2px;" align="left" alt=""><br/>
		</div>
		<div style="clear:both;">
		<img src="<%=context_Path%>/imgsrv?img=services/tvchannels/ptvhomeOff.jpg&repo=PI&s=0&w=<%=channelIcon%>" style="padding-top:2px;" align="left" alt="">
		<img src="<%=context_Path%>/imgsrv?img=services/tvchannels/ptvnewsOff.jpg&repo=PI&s=0&w=<%=channelIcon%>" style="padding-top:2px;" align="left" alt="">
		<img src="<%=context_Path%>/imgsrv?img=services/tvchannels/style360Off.jpg&repo=PI&s=0&w=<%=channelIcon%>" style="padding-top:2px;" align="left" alt="">
		<img src="<%=context_Path%>/imgsrv?img=services/tvchannels/tvoneOff.jpg&repo=PI&s=0&w=<%=channelIcon%>" style="padding-top:2px;" align="left" alt=""><br/>
		</div>
		<div style="margin:3px 0px 0px 0px;clear:both;">UMobile TV is available on different Mobile Platforms. Choose your handset from Below to download UMobile TV Application for your phone.<br/><br/>
		<div style="width:100%;">
			<div style="width:50%;float:left; text-align:center;">For Android Phones<br/><a href="<%=context_Path%>/androidSrv.jsp"><img src="<%=context_Path%>/imgsrv?img=services/android.jpg&repo=PI&s=0&w=<%=logoIcon%>" style="padding-top:2px; border: 1px solid #333333;" align="center" alt="Android"/></a></div>
			<div style="width:50%;float:right;  text-align:center;">For Blackberry Phones<br/><a href="<%=context_Path%>/blackberrySrv.jsp"><img src="<%=context_Path%>/imgsrv?img=services/blackberry.jpg&repo=PI&s=0&w=<%=logoIcon%>" style="padding-top:2px; border: 1px solid #333333;" align="center" alt="Blackberry"/></a></div>
			<div style="clear: both;"/>
		</div>
		</div>
            
            <%
                }
            %>
        </div>
</div>
<%
        
    }else{
        out.println("Data Not Available!");
}
}catch(Exception e){
    log.error("ContentService :", e);
}
%>
</div>
<div>&nbsp;</div>
<%@ include file="includes/others.jspf"%>

<%@ include file="includes/footer.jspf"%>


<%
wpb.LogVisit(strIP, thisPage, strGsm,strApn,strBrand,strModel, app,request.getQueryString());
%>